/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dndExample;

import java.net.URL;
import java.util.List;

/**
 *
 * @author bernd
 */
public class DropResult {

    public static int NOTHING = 0;
    public static int FILE_LIST_TYPE = 1;
    public static int URL_TYPE = 2;
    private int dropResultType;
    private List fileList;
    private URL url;
    private boolean isEmpty;

    private void init() {
        
        isEmpty = true;
        fileList = null;
        url = null;
        dropResultType = NOTHING;
    }

    public DropResult() {
        init();
    }

    public void clear() {
        init();
    }

    public boolean isIsEmpty() {
        return isEmpty;
    }

    public void setIsEmpty(boolean isEmpty) {
        this.isEmpty = isEmpty;
    }

    public List getFileList() {
        return fileList;
    }

    public void setFileList(List fileList) {
        this.fileList = fileList;
        isEmpty = false;
        dropResultType = FILE_LIST_TYPE;
    }

    public URL getUrl() {
        return url;
    }

    public void setUrl(URL url) {
        this.url = url;
        isEmpty = false;
        dropResultType = URL_TYPE;
    }

    public int getDropResultType() {
        return dropResultType;
    }

    @Override
    public String toString() {
        return "DropResult [" + "dropResultType " + dropResultType + " " + "fileList " + fileList + " " + "isEmpty " + isEmpty + " " + "url " + url + "]";
    }





}
